/**
 * 学习进度相关接口
 */

import request from '@/utils/request'

export default {
  /**
   * 标记知识点为已学习
   * @param {Object} data - { course_id, knowledge_id }
   * @returns {Promise} 标记结果
   */
  markKnowledgeLearned(data) {
    return request({
      url: '/student/mark-knowledge',
      method: 'post',
      data
    })
  }
}
